package com.ampq.controller;

import com.ampq.QueueSend;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class DemoController {

    @Autowired
    QueueSend  queueSend;

    @RequestMapping("send")
    public String send(){
        queueSend.sendMessage("1231231231231231321");
        return "success";
    }
}
